﻿using Base.ClientUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.ServiceModel.PeerResolvers;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Forms;

namespace HY.WCS.Client.Frames {
    public partial class Main : Form {
        EqupFrm f = new EqupFrm();
        public Main() {
            InitializeComponent();
            this.MaximizedBounds = Screen.PrimaryScreen.WorkingArea;
            f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            f.TopLevel = false;
            Controls.Add(f);
            f.Dock = System.Windows.Forms.DockStyle.Fill;
            f.supper = this;
            f.Show();
        }

        private void button1_Click(object sender, EventArgs e) {

        }

        private void 设备列表ToolStripMenuItem_Click(object sender, EventArgs e) {
        
        
            f.Show();
   
       

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) {

        }

        private void 关闭ToolStripMenuItem_Click(object sender, EventArgs e) {
            this.Close();
        }

        private void toolStripTextBox1_Click(object sender, EventArgs e) {

        }

       public void setInfo(String info) {
            DateTime d= DateTime.Now;
            mainInfo = info+"-"+d.Minute+":"+d.Second;
        }

        String mainInfo = "";

        private void timer1_Tick(object sender, EventArgs e) {
            toolStripTextBox1.Text = mainInfo;
        }
    }
}
